---
title: XML.decode()
api: XML.decode
---

## Description

<Summary/>

The input to this method is expected to be a [Data](/reference/api/Data). If you have a string input, use [XML.parse()](/reference/api/XML/parse) instead.

## Syntax

``` js
XML.decode(data)
```

## Parameters

<Parameters/>

## See Also

* [XML](/reference/api/XML)
* [XML.encode()](/reference/api/XML/encode)
* [XML.parse()](/reference/api/XML/parse)
* [XML.stringify()](/reference/api/XML/stringify)
